package org.pine.dictionary.common;

import com.baomidou.mybatisplus.annotation.IEnum;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Objects;

/**
 * <p>
 * 基础枚举接口
 * </p>
 *
 * @author pine
 * @since 2024-05-16
 */
public interface BaseEnum<CODE extends Serializable> extends IEnum<CODE> {

    CODE getCode();

    String getDesc();

    default CODE getValue() {
        return this.getCode();
    }
}
